continuity and differentiability of greatest integer function